package com.tnt.hpit.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.scenes.scene2d.ui.tablelayout.Table;
import com.tnt.hpit.gamelogic.GameControl;
import com.tnt.hpit.helper.Input;
import com.tnt.hpit.shared.Constants;

public class MenuScreen extends AbstractScreen{
	
	
	public MenuScreen ( GameControl gameControl ){
		super(gameControl);
	}

	@Override
	public void show() {
		super.show();
		Constants.printLog(this.toString(), "Menu screen show");
//		gameControl.setScreen( new PlayScreen(gameControl));
		if ( gameControl.myConnectHelper != null ){
			gameControl.myConnectHelper.create();
			gameControl.myConnectHelper.start();
		}
	}

	@Override
	public void render(float arg0) {
		super.render(arg0);
		gameControl.myConnectHelper.render(sb);
	}
}
